#include <at89c51RC2.h>
#include <MatrixLED.h>

unsigned char code Animatio[]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xFF,0x08,0x08,0x08,0xFF,0x00,0x5F,
0x00,0xFD,0x00,0x00,0x00,0x00,0x00
};

void main()
{
	unsigned int i,offset=0,count=0;
	
	MatrixLED_Init();
	
	while(1) 
	{
		for(i=0;i<8;i++) MatrixLED_ShowColumn(i,Animatio[i+offset]);
		count++;
		if(count==10)
		{
			offset++;
			count=0;
			if(offset>=16)
			{
				offset=0;
			}
		}
	}
}